package prectise1;

class Student {
    private String name;
    private int sid;
    private int banji;
    private String gender;
    private int age;
    private String xingge;

    public void setStu(String name, int sid, int banji, String gender, int age, String xingge) {
        this.name = name;
        this.sid = sid;
        this.banji = banji;
        this.gender = gender;
        this.age = age;
        this.xingge = xingge;
    }

    public void say() {
        System.out.println("my name is " + name + " and my sid is " + sid);
        System.out.println("my class is " + banji + " and my gender is " + gender);
        System.out.println("my personality is " + xingge);
        System.out.println();
    }
}

public class StudentOperator {
    public static void main(String[] args) {
        Student stu1 = new Student();
        Student stu2 = new Student();
        Student stu3 = new Student();

        stu1.setStu("A", 1001, 1, "女", 17, "好人");
        stu2.setStu("B", 1002, 1, "男", 17, "坏人");
        stu3.setStu("C", 1003, 1, "女", 17, "好人");

        stu1.say();
        stu2.say();
        stu3.say();
    }
}